<ul nz-menu [nzMode]="'inline'" style="height:100%;">
  <ng-container *ngTemplateOutlet="menuTpl; context: {$implicit: menus}"></ng-container>
  <ng-template #menuTpl let-menus>
    <ng-container *ngFor="let menu of menus">
      <li nz-menu-item  [nzDisabled]="menu.disabled" (click)='onClick(menu)'  [nzSelected]="menu.selected" >
        <span title >
          <i nz-icon [type]="menu.icon" *ngIf="menu.icon"></i>
          <span>{{ menu.title }}</span>
        </span>
      </li>
    </ng-container>
  </ng-template>
</ul>